<%@ include file="/taglibs.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<head>
<title>北京邮电大学学生党员在线学习中心</title>
  <link href="${ctx}/css/pagination.css" rel="stylesheet" type="text/css" />

	<script type="text/javascript">
		$(function(){
			var focusMenuId = '<%=request.getAttribute("flag") %>';
			$('#side_sub_menu_div_' + focusMenuId).attr('class', 'side_sub_menu_focus');
		});
	</script>


</head>

<s:if test="#session.session_user!=null">
<div id="nav_bar">
    <img id="nav_bar_left" src="../../../styles/nav_bar_left.png" alt=""/>
    <div id="welcome_label">欢迎您，&nbsp;<s:property value="#session.session_user.studentName" />!</div>
    <img id="nav_bar_seperator" src="../../../styles/nav_bar_seperator.png" alt=""/>
    <div id="nav_location">
        <img id="nav_bar_point" src="../../../styles/nav_bar_point.png" alt="" />
        <div id="nav_cur_location">当前位置：&nbsp;<a href="LearnCenterAction_learnCenter">学习园地</a>&nbsp;&nbsp;>&nbsp;&nbsp;<span style="color:black;">
        <s:if test="#request.flag == 1">
        	党的基本知识
        </s:if><s:elseif test="#request.flag == 2">
        	党的历史知识
        </s:elseif><s:elseif test="#request.flag == 3">
        	党员常规事项
        </s:elseif><s:else>
        	基层干部职责
        </s:else>
        </span></div>
    </div>
    <img style="float:right; width:5px;" src="../../../styles/nav_bar_right.png" alt=""/>
    <a id="nav_logout" href="${ctx}/logoutAction">[安全退出]</a>
</div>
</s:if>
<div style="clear:both; height:5px;">&nbsp;</div>
<div style="min-height:450px;">
	<!-- left -->
	<div id="side_menu"  style="min-height:555px;">
	    <div id="side_menu_title">
	        <img src="../../../styles/side_menu_title_img.png" alt="" />
	        <span>学习园地</span>
	    </div>
	    <div id="side_menu_title_bottom">&nbsp;</div>
	    <div class="side_sub_menu"  id="side_sub_menu_div_1">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/LearnCenterAction_learnCenter?flag=1">党的基本知识</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu"  id="side_sub_menu_div_2">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/LearnCenterAction_learnCenter?flag=2">党的历史知识</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu" id="side_sub_menu_div_3">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/LearnCenterAction_learnCenter?flag=3">党员常规事项</a>
	    </div>
	     <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu" id="side_sub_menu_div_4">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/LearnCenterAction_learnCenter?flag=4">基层干部职责</a>
	    </div>
	</div>

	<div id="main_content">
		<div id="main_content_title">
			<img src="../../../styles/content_title_img.png" alt="" /><span><s:property value="moduleName"/></span>
		</div>
		<div class="main_content_title_bottom">&nbsp;</div>
		<s:form action="LearnCenterAction_learnCenter" method="post"
			theme="simple">
			<table>
				<tr>
					<td style="width:120px;text-align:center;">请输入查询内容：</td>
					<td><input type="text" name="queryTitle" size=60 value="<s:property value="queryTitle"/>"></td>
					<td style="width:60px;text-align:center;"><input type="submit"  name="button" id="button" class="input-button"  value="查询"/></td>
				</tr>
			</table>
			<input type="hidden" name="flag" value="<s:property value="flag"/>" />
		</s:form>

		<div style="clear: both; height: 10px;"></div>

		<ul class="news-list-table" >
			<s:iterator value="learnCenters">
			<li><s:date name="posterTime" format="yyyy-MM-dd"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="${ctx}/LearnCenterAction_viewLearnCenter?id=<s:property value="id"/>&flag=<s:property value="flag"/>" target="_blank">
			 <s:if test="%{null!=title && title.length()>40}">
					<s:property value="title.substring(0,40)+'...'" />
			 </s:if> 
			 <s:else>
					<s:property value="title" />
			 </s:else> 
			</a>&nbsp;&nbsp;<span style="color:#404040;">[访问人数：<s:property value="visitsCount"/>]</span></li>
			</s:iterator>
		</ul>	
		
		<div style="clear:both; height:10px;"></div>
		
		<div style="margin-left:0; text-align: center;">
			<s:property value="paginationCode" escape="false"/>
		</div>
			
	</div>
	<div  style="clear:both">&nbsp;</div>
</div>
